package com.albert.javabrains;

import java.util.Scanner;

public class Application {

	public static void main(String[] args) {
		
		Scanner input = new Scanner(System.in);
		
		/*System.out.println("Enter a number : ");
		
		int value = input.nextInt();
		
		while(value != 5){
			System.out.println("Enter a number : ");
			value = input.nextInt();
		}*/
		int value; // Local Variables not initialized 
		do {
			System.out.println("Enter the number : ");
			value = input.nextInt();
		}
		while(value != 5);
		
		System.out.println("Got 5 !!!");
		
		input.close();
	
	}

}
